<?php

use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;
use Dcat\Admin\Admin;

Admin::routes();

Route::group([
    'prefix'     => config('admin.route.prefix'),
    'namespace'  => config('admin.route.namespace'),
    'middleware' => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', 'HomeController@index');

    $router->resource('swt_address', 'SwtAddressController');

    $router->resource('swt_market_chain', 'SwtMarketChainController');

    $router->resource('swt_network', 'SwtNetworkController');

    $router->resource('swt_trade_order', 'SwtTradeOrderController');

    $router->resource('swt_order', 'SwtOrderController');

    $router->resource('swt_user', 'UserController');

    $router->resource('swt_trade_address', 'SwtTradeAddressController');

    $router->resource('swt_trade_account_log', 'SwtTradeAccountLogController');

    $router->resource('swt_network_chain', 'SwtNetworkChainController');

    $router->resource('swt_pledge', 'SwtPledgeController');

    $router->resource('swt_pledge_rule', 'SwtPledgesRuleController');

    $router->resource('swt_pledge_order', 'SwtPledgeOrderController');

    $router->resource('swt_identity', 'SwtIdentityController');

    $router->resource('swt_transfer_order', 'SwtTransferOrderController');

    $router->resource('swt_transfer_order_buyer', 'SwtTransferOrderBuyerController');
});
